package com.whli.autumn.mall.metadata.domain.dto.productcategory;

import com.whli.autumn.core.extend.domain.dto.BaseTreeAddDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * <p>商品分类新增参数</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-04-09 09:32
 */
@ApiModel(description = "商品分类新增参数")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProductCategoryAddDTO extends BaseTreeAddDTO {

    @ApiModelProperty(value = "分类标识")
    @NotBlank(message = "分类标识不能为空")
    private String code;

    @ApiModelProperty(value = "分类描述")
    @NotBlank(message = "分类描述不能为空")
    private String name;

}
